package com.lancoo.lancooknowledgecourseware;

import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.widget.SeekBar;

import com.lancoo.klgcourseware.base.BaseKlgActivity;
import com.lancoo.klgcourseware.ui.widget.CountTimeView;

/**
 * Created by pengmi on 2019/12/31 15:03
 * Description:
 */
public class TestActivity extends BaseKlgActivity {

    private CountTimeView countTimeView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SeekBar seekBar=findViewById(R.id.seekBar);
        countTimeView = findViewById(R.id.counttime_view);
        seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
            @Override
            public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                countTimeView.setAngle(progress,100);
            }

            @Override
            public void onStartTrackingTouch(SeekBar seekBar) {

            }

            @Override
            public void onStopTrackingTouch(SeekBar seekBar) {

            }
        });
    }

    @Override
    protected int getContentViewId() {
        return R.layout.activity_test;
    }

    @Override
    protected String getTitleName() {
        return "test";
    }

    @Override
    protected void setViewAndUpdata() {

    }
}
